const storeOrder = (state = {}, action) => {
    console.log('storeOrder action:', action);
    console.log('storeOrder state:', state);
    switch (action.type) {
        case 'ADD_ORDER':
            state.order = action.order;
            return state;

        case 'SET_ORDER_ID':
            state.order.orderId = action.orderId;
            return state;

        default:
            return state
    }
};

export default storeOrder